package com.example.universitylibraryback.event;

import java.util.Date;
import java.util.UUID;

public abstract class LibraryEvent {
    private String eventId;
    private Date timestamp;
    private String eventType;
    
    public LibraryEvent(String eventType) {
        this.eventId = UUID.randomUUID().toString();
        this.timestamp = new Date();
        this.eventType = eventType;
    }
    
    // getters and setters
    public String getEventId() {
        return eventId;
    }
    
    public void setEventId(String eventId) {
        this.eventId = eventId;
    }
    
    public Date getTimestamp() {
        return timestamp;
    }
    
    public void setTimestamp(Date timestamp) {
        this.timestamp = timestamp;
    }
    
    public String getEventType() {
        return eventType;
    }
    
    public void setEventType(String eventType) {
        this.eventType = eventType;
    }
}